package org.example.test;

import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.example.JavaBean.plus.User;
import org.example.service.UserService;
import org.example.util.JsonResult;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:App
 * @Date:2025/8/13 15:09
 */
@SpringBootTest
@Slf4j
public class App {
@Resource
private UserService userService;
    @Test
    public void a() {
        User user = new User();
        user.setUsername("admin");
        user.setPassword("aaaaaaaaaaaaaaaaaa");
        JsonResult login = userService.login(user);
        log.info("login:{}", login);
    }
}
